package com.hckjsec.system.controller;

import com.hckjsec.common.annotation.Log;
import com.hckjsec.common.constant.HttpStatus;
import com.hckjsec.common.core.controller.BaseController;
import com.hckjsec.common.core.domain.AjaxResult;
import com.hckjsec.common.core.page.TableDataInfo;
import com.hckjsec.common.enums.BusinessType;
import com.hckjsec.common.init.YwInitData;
import com.hckjsec.common.utils.SecurityUtils;
import com.hckjsec.common.utils.poi.ExcelUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * applets配置Controller
 * 
 * @author cyt
 * @date 2021-07-27
 */
@RestController
@RequestMapping("/hcapplication/configure")
public class PublicConfigController extends BaseController
{

    /**
     * 查询人员map
     */
    @PostMapping("/user")
    public AjaxResult userMap()
    {
        return new AjaxResult(HttpStatus.SUCCESS, "查询成功", YwInitData.getUserMap());
    }

    /**
     * 查询部门map
     */
    @PostMapping("/dept")
    public AjaxResult deptMap()
    {
        return new AjaxResult(HttpStatus.SUCCESS, "查询成功", YwInitData.getDeptMap());
    }

}
